<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<title>登录</title>
<head>
    <script type="application/javascript">
        function checkMsg(){
            var msg = document.getElementById("msg").innerText();
            if(msg != ""){
                alert(msg);
            }
        }

    </script>
</head>
<body >
<div id="msg" th:text="${msg}"></div>
<h2>我是服务器：<span th:text="${#httpServletRequest.localPort}"></span> </h2>
<h2>当前sessionId：<span th:text="${#session?.id}"></span></h2>
<form th:action="@{/resume/login}" method="post">
    <table align="center" border="0">
        <tr>
            <th colspan="2">登录</th>
        </tr>
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username" value="admin"/></td>
        </tr>
        <tr>
            <td>密&nbsp;&nbsp;码：</td>
            <td><input type="password" name="password" value="admin"/></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="登录"/> </td>
        </tr>
    </table>
</form>
</body>
</html>